<template>
	<view>
		<view class="box-pic">
			<image src="/static/fuwu/fx.png" mode=""></image>
		</view>
		<view class="box-bj">
			<view class="fx-bj">成都发型师综合榜</view>
			<view class="fx-top">TOP50</view>
			<view class="fx_text">
				本地最受欢迎的美发师 | 每天更新
			</view>
			<view class="fx_tab">
				<view class="swiper-tabs">
					<view :class="['swiper-tab-lists', Tabs==0 ? 'ons' : '']" @click="Tabs=0">技术榜</view>
					<view :class="['swiper-tab-lists', Tabs==1 ? 'ons' : '']" @click="Tabs=1">服务榜</view>
					<view :class="['swiper-tab-lists', Tabs==2 ? 'ons' : '']" @click="Tabs=2">新锐榜</view>
				</view>
			</view>
		</view>
		<view  v-show="Tabs == 0">
			<view class="stylist-con" v-for="(con,dex) in 3" :key="index">
				<view class="sty">
					<view class="stylist-top">
						<view class="stylist-img">
							<image src="/static/nan.jpg" mode=""></image>
							<view class="dy">
								<image src="/static/fuwu/dy.png" mode=""></image>
							</view>
							<view class="ico">
								<text class="icon iconfont">&#xe65a;</text>
								<text class="icon iconfont">&#xe65a;</text>
								<text class="icon iconfont">&#xe65a;</text>
								<text class="icon iconfont">&#xe65a;</text>
							</view>
						</view>
						<view class="stylist-cen">
							<view class="cen-name">成都造型沙龙 <text>高档型</text></view>
							<view class="cen-score">
								<text class="score">4.7分</text>
								<text>服务:235次</text>
								<text style="margin-left: 25rpx;">人均:$564</text>
							</view>
							<view class="label">
								<text>预约服务</text>
								<text>私人定制</text>
							</view>
							<view class="introduce">
								擅长:短发裁剪 受损发质 染发设计
							</view>
						</view>
						<view class="cen-right">
							2.6km
						</view>
					</view>
					<view class="cen-bom">
						<text>热门本周指数</text>
						<view class="bom">
							<view>
								销售23 |
							</view>
							<view>
								人气 -5 
								<u-icon name="arrow-downward" color="#00c6c2" size="22"></u-icon>
								|
							</view>
							<view>														
								口碑 +5
								<u-icon name="arrow-upward" color="#ff5363" size="22"></u-icon>
							</view>
						</view>
					</view>
				</view>
				<view class="vip" v-for="(item,index) in 2" :key="index">
					<view class="vip-cen" >
						<view class="vip-cen-top">
							<text>洗剪吹</text>
							<text>设计提案+洗护+造型</text>
						</view>
						<view class="vip-cen-bom">						
							<view class="cen-bom-left">
								<text>￥9.9</text>
								<view class="back">
									<text class="back-left">美VIP</text>
									<text >128元</text>
								</view>
							</view>
							<view class="cen-bom-right">已售125</view>
						</view>
					</view>
				</view>
			</view>
			<view class="stylist-con" v-for="(list,index) in 2" :key="index">
				<view class="sty">
					<view class="stylist-top">
						<view class="stylist-img">
							<image src="/static/nan.jpg" mode=""></image>
							<view class="ico">
								<text class="icon iconfont">&#xe65a;</text>
								<text class="icon iconfont">&#xe65a;</text>
								<text class="icon iconfont">&#xe65a;</text>
								<text class="icon iconfont">&#xe65a;</text>
							</view>
						</view>
						<view class="stylist-cen">
							<view class="cen-name">成都造型沙龙 <text>高档型</text></view>
							<view class="cen-score">
								<text>4.7分</text>
								<text>服务:235次</text>
								<text style="margin-left: 25rpx;">人均:$564</text>
							</view>
							<view class="label">
								<text>预约服务</text>
								<text>私人定制</text>
							</view>
							<view class="introduce">
								擅长:短发裁剪 受损发质 染发设计
							</view>
						</view>
						<view class="cen-right">
							2.6km
						</view>
					</view>
					<view class="cen-bom">
						<text>热门本周指数</text>
						<view class="bom">
							<text>销售23 | 人气-5 | 口碑 +5</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Tabs: 0,

			}
		},
		methods: {
			chang(Tabs) {
				that.navIdx = Tabs;
			},
		}
	}
</script>

<style lang="scss">
	.box-pic {
		width: 100%;
		height: 315rpx;
		position: relative;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.box-bj {
		width: 100%;
		height: 315rpx;
		background: rgba($color: #000, $alpha: 0.3);
		position: absolute;
		top: 0;

		.fx-bj {
			position: absolute;
			z-index: 2;
			top: 15%;
			left: 25%;
			width: 388rpx;
			height: 70rpx;
			line-height: 70rpx;
			text-align: center;
			font-size: 30rpx;
			color: #000000;
			font-weight: 500;
			font-family: PingFang;
			background-image: url('@/static/fuwu/bj.png');
			background-repeat: no-repeat;
			background-size: 100% 100%;
			-moz-background-size: 100% 100%;
		}

		.fx-top {
			position: absolute;
			top: 45%;
			left: 39%;
			width: 200rpx;
			height: 38rpx;
			line-height: 38rpx;
			border: 1rpx solid #eee;
			font-size: 36rpx;
			color: #fff;
			font-weight: 500;
			font-family: Regular;
			text-align: center;
		}

		.fx_text {
			position: absolute;
			top: 61%;
			left: 26%;
			font-size: 26rpx;
			color: #fff;
			font-family: PingFang;
		}

		.fx_tab {
			position: absolute;
			bottom: 5%;
			left: 16%;
			color: #000000;

			.swiper-tabs {
				// width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.swiper-tab-lists {
					font-size: 20rpx;
					display: block;
					font-family: PingFang SC;
					font-weight: 400;
					padding: 10rpx 30rpx;
					border-radius: 5rpx;
					color: #000;
					background: #EEEEEE;
					margin-right: 85rpx;
				}

				.ons {
					color: #fff;
					background-color: #00c6c2;

				}
			}
		}
	}

	.stylist-con {
		padding: 25rpx 30rpx 10rpx 30rpx;
		border-bottom: 10rpx solid #EEEEEE;

		.sty {
			padding: 20rpx 0;
			
			.stylist-top {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.stylist-img {
					width: 20%;
					position: relative;

					image {
						width: 117rpx;
						height: 124rpx;
						border-radius: 50%;
					}

					.dy {
						width: 40rpx;
						height: 40rpx;
						position: absolute;
						top: 0;
						left: 0;

						image {
							width: 100%;
							height: 100%;
						}
					}

					.ico {
						padding-left: 5rpx;

						.iconfont {
							color: #F2CB51;
							font-size: 16rpx;
							padding-right: 8rpx;
						}
					}
				}

				.stylist-cen {
					width: 70%;

					.cen-name {
						font-size: 26rpx;
						color: #000000;
						font-family: PingFang SC;

						text {
							font-size: 20rpx;
							color: #333;
							font-family: PingFang SC;
							margin-left: 20rpx;
						}
					}

					.cen-score {
						padding: 5rpx;
						font-size: 24rpx;
						color: #000000;

						text {
							font-size: 20rpx;
							color: #777;
						}
						.score{
							font-size: 24rpx;
							color:  #000;
							border-bottom: 2rpx solid #ffbe39;
							margin-right: 5rpx;
						}
					}

					.label {
						padding: 15rpx 0;
						display: flex;
						align-items: center;

						text {
							display: inline-block;
							padding: 3rpx 10rpx;
							margin-right: 15rpx;
							background-color: #00c6c2;
							color: #fff;
							font-size: 16rpx;
						}
					}

					.introduce {
						margin-top: 10rpx;
						font-size: 20rpx;
						color: #777;
					}
				}

				.cen-right {
					width: 10%;
					font-size: 22rpx;
					color: #777;
					padding-top: 105rpx;
				}
			}

			.cen-bom {
				padding-top: 25rpx;
				display: flex;
				align-items: center;
				font-size: 20rpx;
				color: #00c6c2;
				font-family: PingFang SC;

				view {
					margin-right: 10rpx;
				}

				.bom {
					display: flex;
					align-items: center;
					margin-left: 20rpx;
				}
			}
		}
		
		.vip{
			padding: 25rpx 0 25rpx 95rpx;
			border-top: 1rpx solid #eee;
			
			.vip-cen{
				
				.vip-cen-top{
					font-size: 24rpx;
					color: #333;
					
					text{
						margin-right: 20rpx;
					}
				}
				.vip-cen-bom{
					padding-top: 15rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					
					.cen-bom-left{
						display: flex;
						align-items: center;
						
						text{
							font-size: 30rpx;
							color: #ff3d3d;						
						}
						.back{
							margin-left: 20rpx;												
							display: flex;
							align-items: center;
							
							
							text{
								padding: 4rpx 8rpx;
								display: inline-block;								
								text-align: center;
								color:  #ff3d3d;
								font-size: 16rpx;
								border: 1rpx solid #000000;
							
							}
							.back-left{
								background-color: #000000;
								color:  #f0d9a9;
								
							}
						}
					}
					.cen-bom-right{
						font-size: 22rpx;
						color:  #b5b5b5;
						font-family: PingFang SC;
					}
				}
			}
		}
	}
</style>
